<?php
namespace App\Http\Middleware;
use Closure;
class User{
    public function handle($request,Closure $next){
        if(!session()->has('users')){
            return redirect('/user/login');
        }
        return $next($request);
    }
}